import request from "./http";


// 大别墅
export function getVill():any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=1&limit=16&order_by=comprehensive&shop_code=dby&show_sale_type=1&hide_sold_out=false&goods_type=1",
        method:"get"
    })
}

//商品详情
export function getPata(goods_id:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/detail",
         method:"get",
         params:{goods_id}
        
    })
}

  //全部分类
  export function getAgge():any{
    return request({
        url:"https://api-mall-static.mihoyogift.com/common/homeishop/v1/category/get_category_list?shop_code=dby",
         method:"get",
    
        
    })
}


export function getConts(params:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=1&limit=16&order_by=comprehensive&category_id="+ params +"&shop_code=dby&show_sale_type=1&hide_sold_out=false&goods_type=1",
         method:"get",
    
        
    })
}

//综合点击
export function getNavig(params:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=1&limit=16&order_by=" + params +"&shop_code=dby&show_sale_type=1&hide_sold_out=false&goods_type=1",
         method:"get",
    
        
    })
}